﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

namespace Smartec.Accounts.Camel.AMS.Model.Entities
{
    [MetadataType(typeof(DBAudit_Metadata))]
    public partial class DBAudit
    {
        #region DisplayName
        public string DisplayName
        {
            get
            {
                return TableName + " [" + AuditId.ToString() + "]";
            }
        }
        #endregion //DisplayName
    }


    public class DBAudit_Metadata
    {
        //[DisplayName("Date")]
        //public DateTime RevisionStamp { get; set; }

        //[DisplayName("Entity Name")]
        //public string TableName { get; set; }

        //[DisplayName("User Name")]
        //public string UserName { get; set; }

        //[DisplayName("Action")]
        //public string Action { get; set; }

        //[DisplayName("Changed Fields")]
        //public string ChangedColumns { get; set; }
    }
}
